package net.a6polo.service.domain;

public class Account {
	
	/**
	 * 数据库主键id
	 */
	private long id;
	
	/**
	 * 网站生成的id
	 */
	private long uid;
	
	/**
	 * 用户名
	 */
	private String userName;
	
	/**
	 * 访问token
	 */
	private String accessToken;
	
	/**
	 * 刷新token
	 */
	private String refreshToken;
	
	/**
	 * 有效时间
	 */
	private String expiresIn;
	
	/**
	 * 账户类型
	 * 1.新浪微博
	 * 2.人人网
	 * 3.QQ空间
	 * 4.腾讯微博
	 */
	private int type;
	
	public Account(long id, long uid, String userName, String accessToken, String refreshToken, String expiresIn,
			int type) {
		super();
		this.id = id;
		this.uid = uid;
		this.userName = userName;
		this.accessToken = accessToken;
		this.refreshToken = refreshToken;
		this.expiresIn = expiresIn;
		this.type = type;
	}

	public Account() {
		super();
	}

	public long getUid() {
		return uid;
	}

	public void setUid(long uid) {
		this.uid = uid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getRefreshToken() {
		return refreshToken;
	}

	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}

	public String getExpiresIn() {
		return expiresIn;
	}

	public void setExpiresIn(String expiresIn) {
		this.expiresIn = expiresIn;
	}

	/**
	 * 账户类型
	 * 1.新浪微博
	 * 2.人人网
	 * 3.QQ空间
	 * 4.腾讯微博
	 * @return
	 */
	public int getType() {
		return type;
	}

	/**
	 * 账户类型
	 * 1.新浪微博
	 * 2.人人网
	 * 3.QQ空间
	 * 4.腾讯微博
	 * @param type
	 */
	public void setType(int type) {
		this.type = type;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "Account [id=" + id + ", uid=" + uid + ", userName=" + userName + ", accessToken=" + accessToken
				+ ", refreshToken=" + refreshToken + ", expiresIn=" + expiresIn + ", type=" + type + "]";
	}
	
}
